<?php

    if(!defined('BASEPATH'))
        exit('No direct script access allowed');

    function info($string)
    {
        $html='<div class="alert alert-info">
        <button type="button" class="close" data-dismiss="alert">&times;</button>';
        $html.= $string;
        $html.= '</div>';
        return $html;

    }

    function success($string)
    {
        $html='<div class="alert alert-success">
        <button type="button" class="close" data-dismiss="alert">&times;</button>';
        $html.= $string;
        $html.= '</div>';
        return $html;

    }

    function error($string='')
    {
        $html='<div class="alert alert-error">
        <button type="button" class="close" data-dismiss="alert">&times;</button>';
        $html.= $string;
        $html.= '</div>';
        return $html;

    }

?>
